﻿
namespace HtmlParser.Html
{
    public class HtmlHelper
    {
        public static bool IsWord(char c)
        {
            return char.IsLetter(c);
        }

        public static bool IsNumber(char c)
        {
            return char.IsDigit(c);
        }

        public static bool IsWhiteSpace(char c)
        {
            return char.IsWhiteSpace(c);
        }

        /// <summary>
        /// &lt;
        /// </summary>
        /// <param name="c"></param>
        /// <returns></returns>
        public static bool IsLessThan(char c)
        {
            return c == '<';
        }
        /// <summary>
        ///  > 
        /// </summary>
        /// <param name="c"></param>
        /// <returns></returns>
        public static bool IsMoreThan(char c)
        {
            return c == '>';
        }

        public static bool IsBackSlash(char c)
        {
            return c == '/';
        }

        public static bool IsEqual(char c)
        {
            return c == '=';
        }

        public static bool IsSingleQuotation(char c)
        {
            return c =='\'';
        }

        public static bool IsDoubleQuotation(char c)
        {
            return c == '\"';
        }
    }
}
